package com.tyut.springboottest.domin;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Arrays;

@Data
@Component
@ConfigurationProperties(prefix = "student")
public class Student {
    private String stdId;
    private String stdName;
    private String[] hobby;

    @Override
    public String toString() {
        return "Student{" +
                "stdId='" + stdId + '\'' +
                ", stdName='" + stdName + '\'' +
                ", hobby=" + Arrays.toString(hobby) +
                '}';
    }
}